package com.example.coursemanagement.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 1. @ClassDescription:
 * 2. @author: Z
 * 3. @date: 2023年11月28日 16:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Campus {
    private static final long serialVersionUID=1L;

    @TableId(value = "campus_id", type = IdType.AUTO)
    private Integer campusId;

    private Integer userId;

    private String cover;

    private String context;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
